package com.hdax.dmw.pay.alipay;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "9021000123613707";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEugIBADANBgkqhkiG9w0BAQEFAASCBKQwggSgAgEAAoIBAQDC9jC6tzDvRnDR3tadYO5GdDaBVix/FLmzBS6J4e10c4fFfGl/koZuog8B846UKplkIy+t1C4bEqO3gC0dkl0f8kZW7wJFVp7ZfmKnoF6ZdMsP/urhYj39V57FJ+OpApXJnH3hSJ7ckDCTLkpWEG6d1TLtevCSSWYYlrZYsGi941YPasgAtgqvvAPgv4g3coINsK1N+k/o2rH2uqaKdQLPW4oeAbKNYvPm6P5QBaqs0I4Nj9M+xi/y+w2WxN4aK0RqzQtLo7Tzkn/dSqJwVhRE39/fKsBreD57uItrb74H93wZicxHezUv5fVIrHl7dXHfTa2j/YfdCOvYZ2yAC9PZAgMBAAECggEAXSRdF3cZq9bNY5bAlaOPcp1mxNe0nmn6Zeqd10XWugHP5auQg2AvVX+bB+WiQmsvqUWeK7/o3wpCqRJVe4FHeFG5BSNexF2jumjFHSxixZGkydmRwWe8EeLgeXSbMU2I3i8jfJPDQcCpVEeTQBbNoh4PHKHVeS4T1r96ElkFUWIKElOo5NiURr1wT2ftYCXHKQPDzztCZT10L96mzKZvDhlZ2Z4Wj3AtR508c0QUbBz6PfK9LZMbiUdVkTxGDkIdClG9LsQ3cki0FZxpJFGuwnNmVpp/Idz1ymRnTurgRzCiHRX3N3QuP7sWJjJhFObD2vo+stIi1Da9sC2EPt/K2QKBgQD6FRBJqt4w9SO+jFDdZcXomyJp6kF+CgOdOxwp6spDKYhIPuhxsg1B2uTmGU/9+twzKruMhFhauMD0Z5addh/6KhLcM+4gQWtLEE9/bWYxWLgx0xjBMGG5k1M9DRpK0IF5ctlHbX7mG4WbccLi/F+6kPATQTRRK0vdKngZ4uj/hwKBgQDHkzhGHGaZfC3jeAvbwwNKS14IXWavCQwmXdR+df2PhIcrR9ZrNsGRV+upy/z9p8FhjONkqtOJeqH6w4hk0yNiF2XbjzPi+MMw0w9kOD1jkTu0kmI9yv14RcR7ENIpXiTPHCp9lE/jtYllnoY8QJYgeMiRbqrh5zcMbn5GEXOpnwKBgHf11KtRwGWBodTMoBmjsSykBf0CdsoL6bHpYdglnUJcUNg+/OdU/pEBfF139OwjAq+0puR/s5ZJG53hdtkviaVJu2RPsMFeQCZwu4Gnq6auJSUZWr2JBMetCPe3Kk6K+CCW2+0sc/vTZeKrzk1tvEnVLqQ92ee5uhlsPtJEC3pPAoGAZ2tByQskm7q+6NYnhv0acmB13O3RrTiKBEOxPssT11A830+9rBdW3WNrKrUbZ7KLwmpI17yyG9bho1m6D01eU5F+ZfViVObF90IYAr4mCbeT8fG9WPocuTumIoPH9Enl1zFoT2UQtRY4meE4/HYXlcIhZUOs551yaE3Fv7eBcU8Cf0ZDF42//b47y7wJcpgCFYFQV+DpKDhgcb7AWb5m3tSkdiACS4sUHmpYK9V5zjeyz+fEIm8lTJ8MRBX7tqJMdpfPOLjUIq5LkE2NpdvbyojZzjAIECk2VYLn7EsDqt+Tj4yhLJiOA8NH3o4qT1F6Vd40/h1EE0vy/8vggxFjC+8=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApEbXAyAgpxgs1BRuGHN12oxBDMaU3cotf9RvFY5wuZNJsO2e5Y2qmNjjPgYIGQ/t7yjGqzCFOtT3yt4Qfo4xSsr+UFhOn3zbb7dHT1riFJ5k0bt0sl8zNms+QwgrrJWCc2DCm8qiwx0oFBUGhM7DxgneuYvVBkHxN0fCCDz1F5Vv//sETYGnt2nVpGDDO9TaYVqltuyZo5KoKAC11WzcO+zfQL/yO7Z0jpS5JT9Q11WzmUTiEDxpK6gUnvRcRQ6GN9OMCOSuAoUbR9D+g/zS/pLnfRArAPatI1LtlnByTq5LSsiSyKfP7biIrUZZDFLmjYWfsm3CVebuLABdQbah6QIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://mg3vtu.natappfree.cc/pay/pay/success";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://localhost:8080/";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

}